<?php
/**
* @version $Id: mod_jumi.php v 1.1 2006/12/12 $
* @package Joomla! 1.0.X and Mambo_4.5.X
* @copyright (C) 2006 Martin Hajek
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
*/ 
	defined( '_VALID_MOS' ) or die( 'Restricted access' );
	global $mosConfig_absolute_path;
	$incl_file = $mosConfig_absolute_path . '/' . $params->get( 'file_pathname' );
	if (file_exists($incl_file)) {
		$dummy = $params->get( 'php_args' );
		preg_match_all('/\[.*?\]/', $dummy, $matches);
		if ($matches) {
			foreach ($matches as $i=>$match) {
				$jumi = preg_replace("/\[|]/", "", $match);
			}
		}
		include($incl_file);
	}
	else {
		echo "The file <b> ".$incl_file."</b> doesn't exist!<br /> Set correct pathname in the admin section of Jumi module, please.";
	}
?>